package yx.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsTraining entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_training", catalog = "")
public class BsTraining implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private String trainingName;
	private Date startDate;
	private Date endDate;
	private String trainingSchool;
	private String certificateName;
	private String memo;

	// Constructors

	/** default constructor */
	public BsTraining() {
	}

	/** full constructor */
	public BsTraining(Integer studentId, String trainingName, Date startDate, Date endDate, String trainingSchool, String certificateName, String memo) {
		this.studentId = studentId;
		this.trainingName = trainingName;
		this.startDate = startDate;
		this.endDate = endDate;
		this.trainingSchool = trainingSchool;
		this.certificateName = certificateName;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "TRAINING_NAME", length = 64)
	public String getTrainingName() {
		return this.trainingName;
	}

	public void setTrainingName(String trainingName) {
		this.trainingName = trainingName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "START_DATE", length = 10)
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "END_DATE", length = 10)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "TRAINING_SCHOOL", length = 64)
	public String getTrainingSchool() {
		return this.trainingSchool;
	}

	public void setTrainingSchool(String trainingSchool) {
		this.trainingSchool = trainingSchool;
	}

	@Column(name = "CERTIFICATE_NAME", length = 32)
	public String getCertificateName() {
		return this.certificateName;
	}

	public void setCertificateName(String certificateName) {
		this.certificateName = certificateName;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}